<?php


	namespace app\controller\shop;


	use app\services\admin\JWTServices;
	use app\services\Memberservices;
	use app\validate\shop\MemberValidate;

	class MemberController extends ShopBaseController
	{


		/**
		 * @var MemberValidate
		 */
		protected MemberValidate $memberValidate;

		/**
		 * @var Memberservices
		 */
		protected Memberservices $memberServices;

		/**
		 * @var JWTServices
		 */
		protected JWTServices $jwtServices;


		protected function initialize () {
			$this->memberValidate = MemberValidate::class;
			$this->memberServices = Memberservices::class;
		}


		public function index () {
			$validateRes = $this->memberValidate->goSceneCheck("index");
			if ($validateRes) {
				return toast($validateRes);
			}

			$uid = $this->request->uid();
			return success($this->memberServices->lst($this->request));
		}
	}
